//
.table > thead > tr > th {
    .blod;
    .bdrb;
}
.table {
    @c: @ces*4.5; //定义tr 背景颜色
    &:only-of-type{
        .mgb(0);
        .bdrb;
    }
    a:hover{
        text-decoration: none;
    }
    tbody,
    tfoot,
    thead {
        tr {
            th {
                &,
                td {
                    &:first-child {
//                      .pdl(2*@mpb);
                        .tac;
                    }
                }
            }
            td,
            th {
                .pd;
                .trs;
            }
        }
    }
    thead {
        .blod;
        border-bottom: 1px solid #ddd;
        .table-striped&{
            th{
                .unbd;
            }
        }
        tr.sortmix{
            th:not(.lock){
                .pd(0);
                .btn{
                    line-height: 20px;
                    width: 100%;
                    .tal;
                    .unbd;
                    .unbg;
                    .pd;
                    .blod;
                    &:hover{
                        background-color: @cgy*1.05;
                    }
                    &.active{
                        .unbs;
                    }
                    &:active,&:focus{
                        outline: none;
                    }
                    .iconfont;
                    font-size: 14px;
                    &:before{
                        content: "\e626";
                        position: absolute;
                        right: 5px;
                        color: @cc2;
                    }
                    &.unicon{
                        &:before{
                            content: "";
                        }
                    }
                }
                &:first-child{
                    .btn{
                        .pdl(2*@mpb)
                    }
                }
            }
        }
    }
    tbody {
        tr,th,td{
            .trs;
            
        }
        th,td{
            &.control{
                .pd(0);
                vertical-align: middle;
                .tac;
            }
        }
        a,button{
            &.control{

            }
        }
    }
    tr.filter,tr.edit{
        td,th{
            .pd(8px @mpb);
            vertical-align: middle;
        }
        .form-control{
            height: auto;
            &.line{
                padding-right: 24px;
                &+.line-label{
                    .mgb(0)
                }
            }          
        }
    }  
    tr.edit{
        td,th{
            .form-control{
                .pdl(0);
            }
        }
        background-color: @cbsw;
        .control{
//          background-color: @cgr;
        }
    }  
    tr.filter{
        .form-control{
            font-weight: normal;
            &.line{
                &+.line-label{
                    &:before{
                        .iconfont;
                        content: "\e662";
                        color: @cc2;
                        position: absolute;
                        top: -15px;
                        right: 12px;
                        -webkit-transform: translateY(-50%);          
                        -moz-transform: translateY(-50%);;
                        -ms-transform: translateY(-50%);
                        -o-transform: translateY(-50%);
                        transform: translateY(-50%);
                    }                
                }                
            }
            &:focus+.line-label{
                &:before{
                    content: "";
                }
            }
        }
    }
    .form-group{
        .mgb(0);
    }
    &.ces {
        >tbody {
            >tr {
                .table-striped& {
                    &:nth-of-type(odd) {
                        background-color: @c;
                    }
                }
                .table-hover& {
                    &:hover {
                        background-color: @c;
                    }
                }
            }
        }
    }
    &.tools{
        min-width: 1000px;
        
    }
    &:not(&-bordered){
        .bdrb
    }
    &&-sm{
        thead{
            font-weight: normal;
        }
        tbody td, thead th, thead td{
            .pd(.3rem);
        }
    }
    & &-active, & &-active>td, & &-active>th{
        .bgc(rgba(0,0,0,.009));
    }
    & &-primary, & &-primary>td, & &-primary>th,& .bg-primary, & .bg-primary>td, & .bg-primary>th{
        .crw;
    }
}
.table+.table{
    margin-top: 2*@mpb;
}
.table-center>tbody>tr>td, .table-center>tbody>tr>th, .table-center>tfoot>tr>td, .table-center>tfoot>tr>th, .table-center>thead>tr>td, .table-center>thead>tr>th{
    .tac;
}
.table-condensed>tbody>tr>td, .table-condensed>tbody>tr>th, .table-condensed>tfoot>tr>td, .table-condensed>tfoot>tr>th, .table-condensed>thead>tr>td, .table-condensed>thead>tr>th{
    .pd(@mpb/1.5 @mpb/3);
}
